interface Run{
   public static final int a1=1;
static {
        System.out.println("haha");
  }
    {
        System.out.println("haha");
    }
   public Run(){

  }
}
abstract class Animal{
    public String name;
    public int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
class Dog extends Animal implements Run{


    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void run() {
        System.out.println(this.name+"正在跑");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog("旺财",3);
        dog.run();
    }
}
